#define _CRT_SECURE_NO_WARNINGS  1
int get_days_of_month(int y, int x)
{
	int days[] = { 0,31,28,31,30,31,30,31,31,30,31.30,31 };
	int day = days[x];
	if (is_leap_year(y) && x == 2)
		day += 1;
	return day;
}